package cn.tedu._05weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

//微博详情页的VO类
@Data
public class WeiboDetailVO {
    @ApiModelProperty(value = "用户id")
    private Long id;
    @ApiModelProperty(value = "用户昵称")
    private String nickname;
    @ApiModelProperty(value = "微博内容")
    private String content;

    /*
    JsonFormat()注解：制定日期时间格式和时区


     */
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时MM分SS秒",timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "发布时间")
    private Date created;
}
